import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '订单编号',
            dataIndex: 'orderNo',
            width: 200,
        },
        {
            title: '下单人',
            dataIndex: 'accountInfoId',
            width: 200,
        },
        {
            title: '支付类型（PAY_WX微信  PAY_ALI支付宝 3线下PAY_UNDERLINE 4 PAY_BALANCE余额支付）',
            dataIndex: 'payType',
            width: 200,
        },
        {
            title: '订单状态（1待付款，2已付款,3已退款）',
            dataIndex: 'orderStatus',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'buySource',
            width: 200,
        },
        {
            title: '用户备注',
            dataIndex: 'remark',
            width: 200,
        },
        {
            title: '订单总金额',
            dataIndex: 'totalPrice',
            width: 200,
        },
        {
            title: '验证码',
            dataIndex: 'orderCode',
            width: 200,
        },
        {
            title: '如果支付方式为线下  是否确认（1已确认，2未确认）',
            dataIndex: 'isCheck',
            width: 200,
        },
        {
            title: '推荐人Id同员工Id同accountId',
            dataIndex: 'employeeId',
            width: 200,
        },
        {
            title: '过期时间',
            dataIndex: 'expireDate',
            width: 200,
        },
        {
            title: '线下支付（销售人员收款验证时选择）',
            dataIndex: 'paywayId',
            width: 200,
        },
        {
            title: '支付时间',
            dataIndex: 'payDate',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'airportId',
            width: 200,
        },
        {
            title: '支付参数',
            dataIndex: 'payparamId',
            width: 200,
        },
        {
            title: '支付入口',
            dataIndex: 'payEntranceType',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isEnd',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'refundRemark',
            width: 200,
        },
        {
            title: '是否处理',
            dataIndex: 'isDeal',
            width: 200,
        },
        {
            title: '删除状态',
            dataIndex: 'delState',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'weChatId',
            width: 200,
        },
        {
            title: '易宝订单token,再次调取支付时用到',
            dataIndex: 'yiBaoOrderToken',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'yiBaoUniqueOrderNo',
            width: 200,
        },
        {
            title: '电子签名Id',
            dataIndex: 'accountElesignId',
            width: 200,
        },
        {
            title: '订单来源',
            dataIndex: 'sourceType',
            width: 200,
        },
        {
            title: '回调地址',
            dataIndex: 'goodsCallbackUrl',
            width: 200,
        },
        {
            title: '回调地址',
            dataIndex: 'goodsStateCallbackUrl',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isCallbackSuccess1',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isCallbackSuccess2',
            width: 200,
        },
        {
            title: '公司下单时用户的唯一标识',
            dataIndex: 'thirdMemberId',
            width: 200,
        },
        {
            title: '生成物品的起始日期,计算有效期用',
            dataIndex: 'flightDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '订单编号',
            field: 'orderNo',
            component: 'Input',
            required: true,
        },
        {
            label: '下单人',
            field: 'accountInfoId',
            component: 'Input',
            required: true,
        },
        {
            label: '支付类型（PAY_WX微信  PAY_ALI支付宝 3线下PAY_UNDERLINE 4 PAY_BALANCE余额支付）',
            field: 'payType',
            component: 'Input',
            required: true,
        },
        {
            label: '订单状态（1待付款，2已付款,3已退款）',
            field: 'orderStatus',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'buySource',
            component: 'Input',
            required: true,
        },
        {
            label: '用户备注',
            field: 'remark',
            component: 'Input',
            required: true,
        },
        {
            label: '订单总金额',
            field: 'totalPrice',
            component: 'Input',
            required: true,
        },
        {
            label: '验证码',
            field: 'orderCode',
            component: 'Input',
            required: true,
        },
        {
            label: '如果支付方式为线下  是否确认（1已确认，2未确认）',
            field: 'isCheck',
            component: 'Input',
            required: true,
        },
        {
            label: '推荐人Id同员工Id同accountId',
            field: 'employeeId',
            component: 'Input',
            required: true,
        },
        {
            label: '过期时间',
            field: 'expireDate',
            component: 'Input',
            required: true,
        },
        {
            label: '线下支付（销售人员收款验证时选择）',
            field: 'paywayId',
            component: 'Input',
            required: true,
        },
        {
            label: '支付时间',
            field: 'payDate',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'airportId',
            component: 'Input',
            required: true,
        },
        {
            label: '支付参数',
            field: 'payparamId',
            component: 'Input',
            required: true,
        },
        {
            label: '支付入口',
            field: 'payEntranceType',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isEnd',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'refundRemark',
            component: 'Input',
            required: true,
        },
        {
            label: '是否处理',
            field: 'isDeal',
            component: 'Input',
            required: true,
        },
        {
            label: '删除状态',
            field: 'delState',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'weChatId',
            component: 'Input',
            required: true,
        },
        {
            label: '易宝订单token,再次调取支付时用到',
            field: 'yiBaoOrderToken',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'yiBaoUniqueOrderNo',
            component: 'Input',
            required: true,
        },
        {
            label: '电子签名Id',
            field: 'accountElesignId',
            component: 'Input',
            required: true,
        },
        {
            label: '订单来源',
            field: 'sourceType',
            component: 'Input',
            required: true,
        },
        {
            label: '回调地址',
            field: 'goodsCallbackUrl',
            component: 'Input',
            required: true,
        },
        {
            label: '回调地址',
            field: 'goodsStateCallbackUrl',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isCallbackSuccess1',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isCallbackSuccess2',
            component: 'Input',
            required: true,
        },
        {
            label: '公司下单时用户的唯一标识',
            field: 'thirdMemberId',
            component: 'Input',
            required: true,
        },
        {
            label: '生成物品的起始日期,计算有效期用',
            field: 'flightDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
